home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 121
/
FreelogMagazineJuilletAout2014-No121.iso
/
Outils
/
Adobe-Air
/
adobe-air_13.exe
/
[0]
/
setup.swf
/
scripts
/
mx
/
skins
/
halo
/
ProgressBarSkin.as
< prev
next >
Wrap
Text File
|
2014-03-27
|
1KB
|
44 lines
package mx.skins.halo
{
import mx.core.mx_internal;
import mx.skins.Border;
import mx.styles.StyleManager;
import mx.utils.ColorUtil;
use namespace mx_internal;
public class ProgressBarSkin extends Border
{
mx_internal static const VERSION:String = "3.0.0.0";
public function ProgressBarSkin()
{
super();
}
override public function get measuredWidth() : Number
{
return 200;
}
override public function get measuredHeight() : Number
{
return 6;
}
override protected function updateDisplayList(param1:Number, param2:Number) : void
{
super.updateDisplayList(param1,param2);
var _loc3_:* = getStyle("barColor");
var _loc4_:uint = !!StyleManager.isValidStyleValue(_loc3_) ? uint(_loc3_) : uint(getStyle("themeColor"));
var _loc5_:Number;
var _loc6_:Array = [_loc5_ = ColorUtil.adjustBrightness2(_loc4_,40),_loc4_];
graphics.clear();
drawRoundRect(0,0,param1,param2,0,_loc6_,0.5,verticalGradientMatrix(0,0,param1 - 2,param2 - 2));
drawRoundRect(1,1,param1 - 2,param2 - 2,0,_loc6_,1,verticalGradientMatrix(0,0,param1 - 2,param2 - 2));
}
}
}